home *** CD-ROM | disk | FTP | other *** search
- Path: cosy.sbg.ac.at!not-for-mail
- From: gwesp@dodo.cosy.sbg.ac.at (Gerhard Wesp)
- Newsgroups: comp.sys.cbm,gnu.gcc,de.comp.gnu,comp.sys.atari.8bit
- Subject: Re: GNU C-compiler port to 6502
- Date: 25 Mar 1996 15:04:18 +0100
- Organization: Dept. of CS, University of Salzburg
- Message-ID: <4j6952$4pc@dodo.cosy.sbg.ac.at>
- References: <4irqpb$7pc@esel.cosy.sbg.ac.at> <DoMHs1.M3M@iglou.com> <4isha9$s6g@charm.magnus.acs.ohio-state.edu>
- NNTP-Posting-Host: dodo.cosy.sbg.ac.at
-
- In article <4isha9$s6g@charm.magnus.acs.ohio-state.edu>,
- Rob Funk <rfunk@magnus.acs.ohio-state.edu> wrote:
- :
- >>write a cross-compiler that produces 6502 code on some other system.
- >
- >That's been done: cc65
- :
-
- You probably mean the lcc port I mentioned in my initial posting?
-
- With this I tried to compile code containig the fragment
-
- while(*p) ;
-
- with p being a char *.
- The resulting assembly code was really a Bad Thing: It contained about ten
- instructions, (involving integer promotion of *p) where a simple
-
- ldy #0
- label: bit (p),y
- bne label
-
- or something like that would suffice...
-
- I hope that gcc would perform better :-)
-
- Greetings,
- -Gerhard
-